package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.dtos.WmNewsUpOrDownDto;
import com.heima.model.wemedia.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {


    ResponseResult findList(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto);

    ResponseResult getInfoById(Integer wmNewsId);

    ResponseResult deleteNewsAndMaterialRelationById(Integer wmNewsId);
    List<String> parsePicture(String content);

    void updateStatusAndReason(Integer id,WmNews.Status status,String reason);

    void updateStatusAndReasonAndArticleId(Integer id,WmNews.Status status,String reason,Long articleId);

    ResponseResult downOrUp(WmNewsUpOrDownDto dto);

    ResponseResult pageQuery(NewsAuthDto dto);

    ResponseResult getNewsById(Integer id);

    ResponseResult authFail(NewsAuthDto dto);

    ResponseResult authPass(NewsAuthDto dto);
}
